package com.ruoyi.huoyun.message.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.huoyun.message.mapper.ToConsignorEvaluateMapper;
import com.ruoyi.huoyun.message.domain.ToConsignorEvaluate;
import com.ruoyi.huoyun.message.service.IToConsignorEvaluateService;

/**
 * 对货主的评价Service业务层处理
 *
 * @author mj
 * @date 2021-11-29
 */
@Service
public class ToConsignorEvaluateServiceImpl implements IToConsignorEvaluateService
{
    @Autowired
    private ToConsignorEvaluateMapper toConsignorEvaluateMapper;

    /**
     * 查询对货主的评价
     *
     * @param id 对货主的评价主键
     * @return 对货主的评价
     */
    @Override
    public ToConsignorEvaluate selectToConsignorEvaluateById(Integer id)
    {
        return toConsignorEvaluateMapper.selectToConsignorEvaluateById(id);
    }

    /**
     * 查询对货主的评价列表
     *
     * @param toConsignorEvaluate 对货主的评价
     * @return 对货主的评价
     */
    @Override
    public List<ToConsignorEvaluate> selectToConsignorEvaluateList(ToConsignorEvaluate toConsignorEvaluate)
    {
        return toConsignorEvaluateMapper.selectToConsignorEvaluateList(toConsignorEvaluate);
    }

    /**
     * 新增对货主的评价
     *
     * @param toConsignorEvaluate 对货主的评价
     * @return 结果
     */
    @Override
    public int insertToConsignorEvaluate(ToConsignorEvaluate toConsignorEvaluate)
    {
        return toConsignorEvaluateMapper.insertToConsignorEvaluate(toConsignorEvaluate);
    }

    /**
     * 修改对货主的评价
     *
     * @param toConsignorEvaluate 对货主的评价
     * @return 结果
     */
    @Override
    public int updateToConsignorEvaluate(ToConsignorEvaluate toConsignorEvaluate)
    {
        return toConsignorEvaluateMapper.updateToConsignorEvaluate(toConsignorEvaluate);
    }

    /**
     * 批量删除对货主的评价
     *
     * @param ids 需要删除的对货主的评价主键
     * @return 结果
     */
    @Override
    public int deleteToConsignorEvaluateByIds(Integer[] ids)
    {
        return toConsignorEvaluateMapper.deleteToConsignorEvaluateByIds(ids);
    }

    /**
     * 删除对货主的评价信息
     *
     * @param id 对货主的评价主键
     * @return 结果
     */
    @Override
    public int deleteToConsignorEvaluateById(Integer id)
    {
        return toConsignorEvaluateMapper.deleteToConsignorEvaluateById(id);
    }
}
